package org.zhaolei.service;

import org.zhaolei.controller.req.FileChunkInitTaskReq;
import org.zhaolei.controller.req.FileChunkMergeReq;
import org.zhaolei.dto.FileChunkDTO;

public interface FileChunkService {

    /**
     * 初始化分片上传
     * @param req
     * @return
     */
    FileChunkDTO initFileChunkTask(FileChunkInitTaskReq req);

    String genPreSignUploadUrl(Long accountId, String identifier, int partNumber);

    void mergeFileChunk(FileChunkMergeReq req);

    FileChunkDTO listFileChunk(Long accountId, String identifier);
}
